package edu.zac.service;

import edu.zac.dao.EmpDao;
import edu.zac.pojo.Emp;

import java.io.IOException;

/**
 * @Title
 * @Author Peihan.Zhang
 * @Email zhangpeihan@sjgtw.com
 * @Date 2021/10/18 20:07
 * @Versions 1.0
 */
public class EmpServiceImp  implements  EmpService{
    private EmpDao empDao ;

    public void setEmpDao(EmpDao empDao) {
        this.empDao = empDao;
    }

    @Override
    public void addEmp(Emp emp) throws IOException {
        try {
            empDao.addEmp(emp);
        } catch (IOException e) {
            e.printStackTrace();
            System.out.println("service层出问题了");
            throw e;
        }
    }
}
